﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="ProductSN.aspx.cs" Inherits="ViewByProuctSN_ProductSN" Title="产品生产状态查询" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:SiteMapPath ID="SiteMapPath1" runat="server">
    </asp:SiteMapPath>
    <div style="text-align: center; vertical-align: middle;">
        <br />
        <br />
        <%-- <asp:Label ID="Label9" runat="server" Text="请输入序列号："></asp:Label>
        <asp:TextBox ID="tbSN" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbSN"
            ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="ButQuery" runat="server" OnClick="ButQuery_Click" Text="查  询" ValidationGroup="VGroup1" />--%>
        <p style="text-align: center;">
            产品序列号：<asp:TextBox ID="tbSN" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                ID="RequiredFieldValidator2" runat="server" ErrorMessage="*" ControlToValidate="tbSN"
                ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
            <asp:Button ID="ButQuery" runat="server" Text="查　询" ValidationGroup="VGroup1" OnClick="ButQuery_Click" />
        </p>
        <br />
        <br />
        <br />
        <br />
        <table style="width: 100%; text-align: center;">
            <tr>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
               <td>
                    <asp:LinkButton ID="LinkButton1" runat="server" Enabled="False" OnClick="LinkButton1_Click"
                        Visible="False" Width="100px" Font-Bold="True" Font-Size="XX-Large" Height="35px">气密</asp:LinkButton>
                </td> 
                <td>
                    <asp:Image ID="Image1" runat="server" Height="15px" Visible="False" Width="100px" />
                </td>
                <%--  <td>
                    <asp:LinkButton ID="LinkButton1" runat="server" Enabled="False" OnClick="LinkButton1_Click"
                        Visible="False" Width="100px" Font-Bold="True" Font-Size="XX-Large" Height="35px">调试</asp:LinkButton>
                </td>
                <td>
                    <asp:Image ID="Image1" runat="server" Height="15px" Visible="False" Width="100px" />
                </td>--%>
                <td>
                    <asp:LinkButton ID="LinkButton2" runat="server" Enabled="False" OnClick="LinkButton2_Click"
                        Visible="False" Width="100px" Font-Bold="True" Font-Size="XX-Large" Height="35px">交调</asp:LinkButton>
                </td>
                <td>
                    <asp:Image ID="Image2" runat="server" Height="15px" Visible="False" Width="100px" />
                </td>
                <td>
                    <asp:LinkButton ID="LinkButton3" runat="server" Enabled="False" OnClick="LinkButton3_Click"
                        Visible="False" Width="100px" Font-Bold="True" Font-Size="XX-Large" Height="35px">电性能</asp:LinkButton>
                </td>
                 <td>
                    <asp:Image ID="Image3" runat="server" Height="15px" Visible="False" Width="100px" />
                </td> 
                <td>
                    <asp:LinkButton ID="LinkButton4" runat="server" Enabled="False" OnClick="LinkButton4_Click"
                        Visible="False" Width="100px" Font-Bold="True" Font-Size="XX-Large" Height="35px">包装</asp:LinkButton>
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <%-- <td>
                    <asp:Label ID="Label1" runat="server" ondatabinding="LinkButton1_Click"></asp:Label>
                </td>
                <td>
                    &nbsp;
                </td>--%>
                 <td>
                    <asp:Label ID="Label1" runat="server" OnDataBinding="LinkButton1_Click"></asp:Label>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:Label ID="Label2" runat="server" OnDataBinding="LinkButton2_Click"></asp:Label>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    <asp:Label ID="Label3" runat="server" OnDataBinding="LinkButton3_Click"></asp:Label>
                </td>
                   <td>
                    &nbsp;
                </td>
                <td>
                    <asp:Label ID="Label4" runat="server" OnDataBinding="LinkButton4_Click"></asp:Label>
                </td>
                <td>
                    &nbsp;
                </td>
               
            </tr>
        </table>
        <br />
        <br />
        <br />
        <table style="width: 100%; text-align: left;">
         <tr>
              <td>气密测试数据:</td>
            </tr>
            <tr>
              <td>
                 <asp:GridView ID="GridView4" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3"
                        CellSpacing="1" DataKeyNames="ProductSN,ProductTypeID,RecordTime,UserID,TestValue,IsPass,PCIP"
                        EmptyDataText="没有相关数据！" GridLines="None"
                         OnSelectedIndexChanged="GridView4_SelectedIndexChanged"
                         OnPageIndexChanging="GridView4_PageIndexChanging"
                         PageSize="20" Width="100%">
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <Columns>
                         <%--  <asp:CommandField SelectText="详细" ShowSelectButton="True" /> --%>
                            <asp:BoundField DataField="ProductSN" HeaderText="产品序列号" />  
                            <asp:BoundField DataField="ProductTypeID" HeaderText="产品代码" />
                            <asp:BoundField DataField="RecordTime" DataFormatString="{0:g}" HeaderText="测试上传时间" />
                            <asp:BoundField DataField="UserID" HeaderText="测试员" />
                            <asp:BoundField DataField="TestValue" HeaderText="测试值" /> 
                            <asp:BoundField DataField="IsPass" HeaderText="是否通过" />
                            <asp:BoundField DataField="PCIP" HeaderText="工位IP" /> 
                        </Columns>
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                    </asp:GridView>
              </td>
            </tr>
            <tr>
                <td>
                    交调测试数据：
                </td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3"
                        CellSpacing="1" DataKeyNames="ProductSN,MOID,PIMRecordTime,ProductTypeID,UserID,PIM_ENAID,PIMTestStep,PIMLimite,MaxPIMValue,DarkroomNum,PIMPass,PIMShiftTime,MaxPIMValueSection"
                        EmptyDataText="没有相关数据！" GridLines="None" OnPageIndexChanging="GridView1_PageIndexChanging"
                        OnSelectedIndexChanged="GridView1_SelectedIndexChanged" PageSize="20" Width="100%">
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <Columns>
                            <asp:CommandField SelectText="详细" ShowSelectButton="True" />
                            <asp:BoundField DataField="ProductSN" HeaderText="产品序列号" />
                            <asp:BoundField DataField="MOID" HeaderText="MO编号" />
                            <asp:BoundField DataField="PIMRecordTime" DataFormatString="{0:g}" HeaderText="上传时间" />
                            <asp:BoundField DataField="ProductTypeID" HeaderText="产品代码" />
                            <asp:BoundField DataField="UserID" HeaderText="测试员" />
                            <asp:BoundField DataField="PIM_ENAID" HeaderText="设备编号" />
                            <asp:BoundField DataField="PIMTestStep" HeaderText="产品状态" />
                            <asp:BoundField DataField="PIMLimite" HeaderText="指标值" />
                            <asp:BoundField DataField="MaxPIMValue" HeaderText="测试值" />
                            <asp:BoundField DataField="DarkroomNum" HeaderText="暗室编号" />
                            <asp:BoundField DataField="PIMPass" HeaderText="是否通过" />
                            <asp:BoundField DataField="PIMShiftTime" HeaderText="班次" />
                            <asp:BoundField DataField="MaxPIMValueSection" HeaderText="测试区间范围" />
                        </Columns>
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td>
                    电性能测试数据：
                </td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="GridView2" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3"
                        CellSpacing="1" DataKeyNames="ProductSN,RecordTime,ProductTypeID,UserID,ENAID,IsPass"
                        EmptyDataText="没有相关数据！" GridLines="None" OnPageIndexChanging="GridView2_PageIndexChanging"
                        OnSelectedIndexChanged="GridView2_SelectedIndexChanged" PageSize="20" Width="100%">
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <Columns>
                            <asp:CommandField SelectText="详细" ShowSelectButton="True" />
                            <asp:BoundField DataField="ProductSN" HeaderText="天线序列号" />
                            <asp:BoundField DataField="RecordTime" DataFormatString="{0:g}" HeaderText="测试时间" />
                            <asp:BoundField DataField="ProductTypeID" HeaderText="产品类型" />
                            <asp:BoundField DataField="UserID" HeaderText="测试员" />
                            <asp:BoundField DataField="ENAID" HeaderText="矢网编号" />
                            <asp:BoundField DataField="TestStep" HeaderText="测试阶段" />
                            <asp:BoundField DataField="MOID" HeaderText="MO" />
                            <asp:BoundField DataField="ShiftTime" HeaderText="班次" />
                            <asp:BoundField DataField="MaxISO" HeaderText="最小隔离值" />
                            <asp:BoundField DataField="MaxVSWR" HeaderText="最大驻波值" />
                            <asp:BoundField DataField="IsSwitch" HeaderText="是否用开关" />
                            <asp:BoundField DataField="ElecStatus" HeaderText="模块是否校准" />
                            <asp:BoundField DataField="IsPAss" HeaderText="是否通过" />
                        </Columns>
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                    </asp:GridView>
                </td>
            </tr> 
            <tr>
                <td>
                    包装信息：
                </td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="GridView3" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3"
                        CellSpacing="1" DataKeyNames="RetrospectSN,ProductSN,OutsideBSN,OutsideCSN,ProductTypeID,PackageTime,PackageUser,PCIP,Remark,IsPackage"
                        EmptyDataText="没有相关数据！" GridLines="None" OnPageIndexChanging="GridView3_PageIndexChanging"
                        OnSelectedIndexChanged="GridView3_SelectedIndexChanged" PageSize="20" Width="100%">
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <Columns>
                            <asp:BoundField DataField="RetrospectSN" HeaderText="追溯条码" />
                            <asp:BoundField DataField="ProductSN" HeaderText="天线条码" />
                            <asp:BoundField DataField="OutsideBSN" HeaderText="外箱条码" />
                            <asp:BoundField DataField="OutsideCSN" HeaderText="外罩条码" />
                            <asp:BoundField DataField="PackageTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss.fff}"
                                HeaderText="包装时间" />
                            <asp:BoundField DataField="PackageUser" HeaderText="包装人员" />
                            <asp:BoundField DataField="PCIP" HeaderText="工位电脑IP" />
                            <asp:BoundField DataField="Remark" HeaderText="备注" />
                            <asp:BoundField DataField="IsPackage" HeaderText="是否包装" />
                        </Columns>
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
    </div>
</asp:Content>
